import Mypromise from "./myPromise.js"


function sleep(delay) {
    return new  Mypromise(r=>{
        setTimeout(r,delay);
    }) 
}

void async function() {
    sleep(1000).then(()=>{
        console.log("hello");        
    })
    sleep(2000).then(()=>{
        console.log("promise");
    })
}();